# coding=utf-8

from question import createMatchQuestionSet, createMatchQuestionGroup

ques1 = [
    ('分成两堆', 'fēn chéng liǎng duī'),
    ('口算题', 'kǒu suàn tí'),
    ('计算题', 'jì suàn tí'),
    ('填空题', 'tián kōng tí'),
    ('选择题', 'xuǎn zé tí'),
    ('问答题', 'wèn dá tí'),
    ('文字题', 'wén zì tí'),
    ('应用题', 'yīng yòng tí'),
    ('数一数', 'shù yī shù'),
    ('比一比', 'bǐ yī bǐ'),
    ('摆一摆', 'bǎi yī bǎi'),
    ('读一读', 'dú yī dú'),
    ('做一做', 'zuò yī zuò'),
    ('想一想', 'xiǎng yī xiǎng'),
    ('练一练', 'liàn yī liàn'),
    ('填一填', 'tián yī tián'),
    ('找一找', 'zhǎo yī zhǎo'),
    ('写一写', 'xiě yī xiě'),
    ('涂一涂', 'tú yī tú'),
    ('圈一圈', 'quān yī quān'),
    ('划一划', 'huá yī huá'),
    ('算一算', 'suàn yī suàn'),
    ('拼一拼', 'pīn yī pīn'),
    ('搭一搭', 'dā yī dā'),
    ('还剩下', 'huán shèng xià'),
    ('合起来', 'hé qǐ lái'),
    ('倒着数', 'dǎo zhuó shù'),
    ('同样多', 'tóng yàng duō'),
    ('被减数', 'bèi jiǎn shù'),
    ('一位数', 'yī wèi shù'),
    ('两位数', 'liǎng wèi shù'),
    ('另一个', 'lìng yī gè'),
    ('凑十法', 'còu shí fǎ'),
    ('借十法', 'jiè shí fǎ'),
    ('三角形', 'sān jiǎo xíng'),
    ('正方形', 'zhèng fāng xíng'),
    ('长方形', 'cháng fāng xíng'),
    ('按顺序', 'àn shùn xù'),
    ('规进位', 'guī jìn wèi'),
]

ques2 = [
    ('相邻', 'xiāng lín'),
    ('第几', 'dì jī'),
    ('遮住', 'zhē zhù'),
    ('等于', 'děng yú'),
    ('大于', 'dà yú'),
    ('小于', 'xiǎo yú'),
    ('加法', 'jiā fǎ'),
    ('减法', 'jiǎn fǎ'),
    ('一共', 'yī gòng'),
    ('还有', 'huán yǒu'),
    ('个位', 'gè wèi'),
    ('十位', 'shí wèi'),
    ('加数', 'jiā shù'),
    ('减数', 'jiǎn shù'),
    ('大约', 'dà yuē'),
    ('组成', 'zǔ chéng'),
    ('最大', 'zuì dà'),
    ('最小', 'zuì xiǎo'),
    ('原有', 'yuán yǒu'),
    ('个位', 'gè wèi'),
    ('十位', 'shí wèi'),
    ('进位', 'jìn wèi'),
    ('退位', 'tuì wèi'),
    ('甲数', 'jiǎ shù'),
    ('乙数', 'yǐ shù'),
    ('组合', 'zǔ hé'),
    ('分解', 'fēn jiě'),
    ('物体', 'wù tǐ'),
    ('图形', 'tú xíng'),
    ('形状', 'xíng zhuàng'),
    ('哪些', 'nǎ xiē'),
    ('圆形', 'yuán xíng'),
    ('菱形', 'líng xíng'),
    ('圆柱', 'yuán zhù'),
    ('方形', 'fāng xíng'),
    ('告诉', 'gào sù'),
    ('知道', 'zhī dào'),
    ('问题', 'wèn tí'),
    ('解决', 'jiě jué'),
    ('卡片', 'qiǎ piàn'),
    ('小棒', 'xiǎo bàng'),
    ('进位', 'jìn wèi'),
    ('凑成', 'còu chéng'),
    ('发现', 'fā xiàn'),
    ('发现', 'fā xiàn'),
    ('规律', 'guī lǜ'),
    ('天平', 'tiān píng'),
    ('钟表', 'zhōng biǎo'),
    ('时间', 'shí jiān'),
    ('时针', 'shí zhēn'),
    ('分针', 'fēn zhēn'),
    ('小时', 'xiǎo shí'),
    ('点钟', 'diǎn zhōng'),
    ('分钟', 'fēn zhōng'),
]

ques3 = [
    ('上', 'shàng'),
    ('下', 'xià'),
    ('前', 'qián'),
    ('后', 'hòu'),
    ('左', 'zuǒ'),
    ('右', 'yòu'),
    ('多', 'duō'),
    ('少', 'shǎo'),
    ('大', 'dà'),
    ('小', 'xiǎo'),
    ('长', 'cháng'),
    ('短', 'duǎn'),
    ('高', 'gāo'),
    ('矮', 'ǎi'),
    ('粗', 'cū'),
    ('细', 'xì'),
    ('快', 'kuài'),
    ('慢', 'màn'),
    ('和', 'hé'),
    ('差', 'chà'),
    ('零', 'líng'),
    ('体', 'tǐ'),
    ('球', 'qiú'),
    ('捆', 'kǔn'),
    ('条', 'tiáo'),
    ('只', 'zhī'),
    ('个', 'gè'),
    ('面', 'miàn'),
    ('页', 'yè'),
    ('辆', 'liàng'),
    ('朵', 'duǒ'),
    ('盒', 'hé'),
    ('边', 'biān'),
    ('棵', 'kē'),
    ('支', 'zhī'),
    ('块', 'kuài'),
    ('片', 'piàn'),
    ('张', 'zhāng'),
    ('本', 'běn'),
    ('瓶', 'píng'),
    ('包', 'bāo'),
    ('头', 'tóu'),
    ('匹', 'pǐ'),
    ('天', 'tiān'),
    ('岁', 'suì'),
    ('元', 'yuán'),
    ('角', 'jiǎo'),
    ('分', 'fēn'),
]


def Math_General_Words_To_Pinyin():
    grp = createMatchQuestionGroup("数学常用词语（看汉字，找拼音）", ques1)
    # st1 = createMatchQuestionSet("", ques1)
    st2 = createMatchQuestionSet("", ques2)
    st3 = createMatchQuestionSet("", ques3)
    grp.AddQuestionSet(st2)
    grp.AddQuestionSet(st3)
    return grp


def Math_General_Words_From_Pinyin():
    grp = createMatchQuestionGroup("数学常用词语（看拼音，找汉字）", ques1, True)
    # st1 = createMatchQuestionSet("", ques1)
    st2 = createMatchQuestionSet("", ques2, True)
    st3 = createMatchQuestionSet("", ques3, True)
    grp.AddQuestionSet(st2)
    grp.AddQuestionSet(st3)
    return grp


def register(groups):
    grps = [
        Math_General_Words_To_Pinyin(),
        Math_General_Words_From_Pinyin(),
    ]
    groups += grps


if __name__ == "__main__":
    from question import showQuestions
    grp = Math_General_Words_To_Pinyin()
    showQuestions(grp)
    grp = Math_General_Words_From_Pinyin()
    showQuestions(grp)
